﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataCache.aspx.cs" Inherits="ASPNETPerformance._06_Cache.DataCache"
    MasterPageFile="~/Site.Master" Trace="true" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h2>
        数据缓存</h2>
    <div class="grid">
        <div class="rounded">
            <div class="top-outer">
                <div class="top-inner">
                    <div class="top">
                        <h2>
                            Northwind Products</h2>
                    </div>
                </div>
            </div>
            <div class="mid-outer">
                <div class="mid-inner">
                    <div class="mid">
                        <!-- Content Goes Here! -->
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="datatable"
                            AllowPaging="true" AllowSorting="true" CellPadding="0" CellSpacing="0" BorderWidth="0"
                            GridLines="None" SortedAscendingHeaderStyle-CssClass="sortasc" SortedDescendingHeaderStyle-CssClass="sortdesc"
                            SortedAscendingCellStyle-CssClass="sortasc" SortedDescendingCellStyle-CssClass="sortdesc">
                            <PagerStyle CssClass="pager-row" />
                            <RowStyle CssClass="row" />
                            <PagerSettings Mode="NumericFirstLast" PageButtonCount="7" FirstPageText="«" LastPageText="»" />
                            <Columns>
                                <asp:BoundField DataField="ProductName" HeaderText="Product" SortExpression="ProductName" />
                                <asp:BoundField DataField="CategoryName" HeaderText="Category" SortExpression="CategoryName" />
                                <asp:BoundField DataField="CompanyName" HeaderText="Supplier" SortExpression="CompanyName" />
                                <asp:BoundField DataField="QuantityPerUnit" HeaderText="Qty/Unit" SortExpression="QuantityPerUnit" />
                                <asp:BoundField DataField="UnitPrice" DataFormatString="{0:c}" HeaderText="Price"
                                    SortExpression="UnitPrice"></asp:BoundField>
                                <asp:CheckBoxField DataField="Discontinued" HeaderText="Discontinued" SortExpression="Discontinued">
                                </asp:CheckBoxField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
            <div class="bottom-outer">
                <div class="bottom-inner">
                    <div class="bottom">
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
